﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WordWonderGame.UI
{
    public partial class DiemSoCaoUI : UserControl
    {
        private DataTable bangDiem;
        public DataTable BangDiem
        {
            get
            {
                return bangDiem;
            }
            set
            {
                bangDiem = value;
                try
                {
                    lbd1.Text = bangDiem.Rows[0][1].ToString();
                    lbt1.Text = bangDiem.Rows[0][0].ToString();
                    lbd2.Text = bangDiem.Rows[1][1].ToString();
                    lbt2.Text = bangDiem.Rows[1][0].ToString();
                    lbd3.Text = bangDiem.Rows[2][1].ToString();
                    lbt3.Text = bangDiem.Rows[2][0].ToString();
                    lbd4.Text = bangDiem.Rows[3][1].ToString();
                    lbt4.Text = bangDiem.Rows[3][0].ToString();
                }
                catch
                { }

            }
        }

        public DiemSoCaoUI()
        {
            InitializeComponent();
        }

    }
}
